//
//  MyCouponTableViewCell.m
//  LoveBeeProject
//
//  Created by 沈腾飞 on 2017/1/5.
//  Copyright © 2017年 斯芬克斯. All rights reserved.
//

#import "MyCouponTableViewCell.h"
#import "MyCouponModel.h"
@interface MyCouponTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *valueLabel;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *descriptionLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;




@end
@implementation MyCouponTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(MyCouponModel *)model{
    _model = model;
    self.valueLabel.text = [NSString stringWithFormat:@"$%@",model.value];
    self.descriptionLabel.text = model.des;
    self.nameLabel.text = model.name;
    self.timeLabel.text = [NSString stringWithFormat:@"有效期:%@至%@",model.start_time,model.end_time];

}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
